package com.js.purs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.js.purs.mapper.PurBindOpenMapper;
import com.js.purs.domain.PurBindOpen;
import com.js.purs.service.IPurBindOpenService;

/**
 * 候选人公示Service业务层处理
 * 
 * @author lzq
 * @date 20240715
 */
@Service
public class PurBindOpenServiceImpl implements IPurBindOpenService 
{
    @Autowired
    private PurBindOpenMapper purBindOpenMapper;

    /**
     * 查询候选人公示
     * 
     * @param openId 候选人公示主键
     * @return 候选人公示
     */
    @Override
    public PurBindOpen selectPurBindOpenByBindCode(String bindCode)
    {
        return purBindOpenMapper.selectPurBindOpenByBindCode(bindCode);
    }

    /**
     * 查询候选人公示列表
     * 
     * @param purBindOpen 候选人公示
     * @return 候选人公示
     */
    @Override
    public List<PurBindOpen> selectPurBindOpenList(PurBindOpen purBindOpen)
    {
        return purBindOpenMapper.selectPurBindOpenList(purBindOpen);
    }

    /**
     * 新增候选人公示
     * 
     * @param purBindOpen 候选人公示
     * @return 结果
     */
    @Override
    public int insertPurBindOpen(PurBindOpen purBindOpen)
    {
        return purBindOpenMapper.insertPurBindOpen(purBindOpen);
    }

    /**
     * 修改候选人公示
     * 
     * @param purBindOpen 候选人公示
     * @return 结果
     */
    @Override
    public int updatePurBindOpen(PurBindOpen purBindOpen)
    {
        return purBindOpenMapper.updatePurBindOpen(purBindOpen);
    }

    /**
     * 批量删除候选人公示
     * 
     * @param openIds 需要删除的候选人公示主键
     * @return 结果
     */
    @Override
    public int deletePurBindOpenByOpenIds(Long[] openIds)
    {
        return purBindOpenMapper.deletePurBindOpenByOpenIds(openIds);
    }

    /**
     * 删除候选人公示信息
     * 
     * @param openId 候选人公示主键
     * @return 结果
     */
    @Override
    public int deletePurBindOpenByOpenId(Long openId)
    {
        return purBindOpenMapper.deletePurBindOpenByOpenId(openId);
    }
}
